Okay.
So today we are going to have a look at material Service.
Now material service is a really cool feature that Roblox has added in not not, you know, in the last
months or anything, but it's relatively recent compared to other features we've looked at.
And, um, basically it allows you to change the material, um, of the material property here.
Not the best explanation, but, um, for example, when I go over to material and change this to marble,
it allows me to give it a different texture when I want to use marble.
So to swap out this marble texture with something else.
Um, so to do that, we obviously first need to find a new material.
So let's use bricks for example.
So if I was to show you what bricks oh one of those in add one of these in if I'll show you what bricks
currently looks like, we can go over to material and go over to brick and look something like that
there.
Okay.
Um, so this here is the brick terial.
Um.
Back back, back.
Okay.
So let's go into the toolbox, which I think have just here.
Yep.
Um, let's go over to images and let's find, um.
Rick.
Like that's fair.
Okay, let's have a look.
Um, this one looks quite cool.
Let's put these onto the onto the part and just see what they might look like.
So this is on the front face here.
That is quite cool.
Obviously it's very it's quite stretched, but, um, materials service does sort this out for us.
Okay, cool, I like that.
So, um, from here, once we've got that, we want to go over to the material service section.
Okay.
And, um, this is, you know, to start off with probably, probably quite strange how your material
overrides and all this stuff, but basically all you need to do is add in a material variant, so a
different variant of your material, and you can just enable it and disable it whenever you'd like.
Okay, before I get on to that, I just want to show you one more thing.
If you scroll down right to the end, you can see the property here called use 2022 materials.
This is basically do you want to use the new set of materials for the added in?
If you don't want to, you can unselect that and it will change it to the old set of materials.
So if you'd prefer to use the old ones for example, or if you've, if you're, if your um, or alternatively,
if it's off and you want to use the new ones, you can do that as well.
This is the old brick texture, um, which you'll probably if you've been developing for a while, you
might be a bit more familiar with.
And then when you turn it on, this is now what it looks like.
Um, like it looks like that now.
Okay.
Um, but anyway so over to to to materials service.
Click the plus icon and we're going to add in a material variant okay.
So you can call this whatever you'd like.
Um I'm going to call this one Old Bricks.
And that's what think.
Think.
These bricks look quite old when we.
When we saw them.
Um, now we have sort of the base material.
This is the material that you're wanting to change.
So this isn't plastic, obviously.
This is brick.
So we're going to change this to be brick.
Okay.
Now we have some appearances here.
We have a color map and a metalness map, um, a normal map and a roughness map.
Um, so if you have a bit more experience, maybe with materials and things like that, you might you
probably would understand what a normal map and a roughness map means.
But basically, um, in other software that's a bit more advanced, such as blender.
Um, when you get onto materials, they use different maps.
So the color map will display where the color is in your in your, um, material.
Then you have one which shows what bits should look more shiny like metals, which bits should have
bumps in them, and which bits should look more rough and more smooth.
This basically allows you to take just a picture of a color and make it look ultra realistic, basically.
So, um, Material Service allows you to do this by adding these in.
However, we're not going to be looking at this in this course.
Um, because in order to get these maps, you just map.
Sum up and try these out, but I'm not gonna particularly talk about them as it's not really too relevant,
I don't think.
Um, but we can change the color map.
That's just the, um, decal here, so we can copy this texture and put it into the color map.
Like.
That's fair.
Okay.
And as long as you have the color map, it will look completely fine.
The other one just will look.
Just will look, just will make it look a bit more realistic okay.
You can also change the studs per tile.
We can have a look at how that affects it later on.
Be sure to.
Also, you should already have a decent understanding of that through textures and things like that
we looked at early on.
Okay, so now we have this material variant.
We want to update the brick material to be this material variant.
So go to Materials service.
Go over to brick and we can change this to be old bricks.
And there you go.
You can see immediately it changes quite nicely there.
Um, I'm not sure if I like this one too much, actually.
Mhm.
It's okay, but on second glance doesn't look too great.
I want to show you a different example.
I want to show you one that's um, you know, pretty cool.
Um.
Hmm.
This one.
Maybe.
Let's try this one out.
Obviously, I want to give you, you know, a good example of this as material service again is really
cool.
It's allows people to make much more realistic things in Roblox studio.
There you go.
That's better.
So you can see how this brick brick texture here is much more realistic than the old one.
So it allows you to really make your give your games much more of a better feel.
And they're kind of when you think about it, they're kind of like textures, um, but they're suited
to when you want to use them to replace the existing materials.
So probably early on in the course, I probably showed you, um, something like bricks or something
with textures and showed you how, you know, you could use this to replace the existing one if you
wanted to, but this is kind of the replacement of that.
So instead of adding in six textures and things like that, just use the material service one okay.
Also we have the material variant property here to do this.
Basically what this allows you to do is to use material variants, but for only one part.
So if we wanted to, we go over to material service and change this just to be brick like this here.
Then we go to the part itself and change the material variants to old bricks and it changes it there.
However, if I add a second part in and give this one brick like this here, then it doesn't change
it.
Okay, so if you're wanting to do it for all of your parts, you would do it in the materials service
over here.
And if you only want to do it for select 1 or 2, you can just put it into the part directly like that.
So Material Service is a really cool feature.
I quite like it.
Um, and since since it's come out, I've used it for a lot of the things I've made as it just makes
updating the existing materials much easier, and also the ability to make things look much more realistic
by adding in these different maps.
Again, um, maybe if you'd like to, you know, have a look what these mean, look a bit more into
them and maybe try them out, um, if you'd like to.
But again, it's not necessary.
It would just be it would just make the material a little bit more realistic.
That would be all.
But try these out and join me in the next lecture where we're going to have a look all about attachments.